package com.liyuhan.onlinetaxibackground.dto.orderDto;

import com.liyuhan.onlinetaxibackground.POJO.BasicOrder;

import java.util.Date;

public class ReceivedOrderDto extends OrderDTO {
    private Integer receivedOrderId;

    // 司机位置信息
    private String driverCity;
    private String driverAddress;
    private Double driverScore;

    // 汽车信息
    private String carBrand;
    private String carColor;
    private String carNumber;

    // 用户上车时间
    private Date pickUpTime;

    // 用户撤销订单的状态
    private String cancelState;
    // 用户撤销订单的原因
    private String cancelReason;

    public Date getPickUpTime() {
        return pickUpTime;
    }

    public void setPickUpTime(Date pickUpTime) {
        this.pickUpTime = pickUpTime;
    }

    public String getCancelState() {
        return cancelState;
    }

    public void setCancelState(String cancelState) {
        this.cancelState = cancelState;
    }

    public String getCancelReason() {
        return cancelReason;
    }

    public void setCancelReason(String cancelReason) {
        this.cancelReason = cancelReason;
    }

    public Integer getReceivedOrderId() {
        return receivedOrderId;
    }

    public void setReceivedOrderId(Integer receivedOrderId) {
        this.receivedOrderId = receivedOrderId;
    }

    public String getDriverCity() {
        return driverCity;
    }

    public void setDriverCity(String driverCity) {
        this.driverCity = driverCity;
    }

    public String getDriverAddress() {
        return driverAddress;
    }

    public void setDriverAddress(String driverAddress) {
        this.driverAddress = driverAddress;
    }

    public Double getDriverScore() {
        return driverScore;
    }

    public void setDriverScore(Double driverScore) {
        this.driverScore = driverScore;
    }

    public String getCarBrand() {
        return carBrand;
    }

    public void setCarBrand(String carBrand) {
        this.carBrand = carBrand;
    }

    public String getCarColor() {
        return carColor;
    }

    public void setCarColor(String carColor) {
        this.carColor = carColor;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public ReceivedOrderDto(Integer receivedOrderId, BasicOrder order, String state, String driverCity, String driverAddress, Double driverScore, String carBrand, String carColor, String carNumber, Date pickUpTime, String cancelState, String cancelReason) {
        super(order.getId(), order.getStartInfo(), order.getStartCity(), order.getEndInfo(), order.getEndCity(), state, order.getTime(), order.getDistance(), order.getCost(), order.getCreateTime(), order.getUseCarTime(), order.getUseCarType());
        this.receivedOrderId = receivedOrderId;
        this.driverCity = driverCity;
        this.driverAddress = driverAddress;
        this.driverScore = driverScore;
        this.carBrand = carBrand;
        this.carColor = carColor;
        this.carNumber = carNumber;
        this.pickUpTime = pickUpTime;
        this.cancelState = cancelState;
        this.cancelReason = cancelReason;
    }
}
